package com.poker.wiki.Service;

import com.github.pagehelper.PageInfo;
import com.poker.wiki.entity.Doc;
import com.poker.wiki.req.DocQueryReq;
import com.poker.wiki.req.DocSaveReq;

import java.util.List;

public interface DocService {
    List<Doc> getAllDoc();

    PageInfo<Doc> findDoc(DocQueryReq req);

    void delete(Long id);

    void save(DocSaveReq req);

    List<Doc> getDocByEbookId(Long ebookId);

    void updateDocView(Long id);

    void docVote(Long id);

    boolean docVoteStatus(Long id);

    void updateEbookInfo();
}
